<?php
/**
 * @version $Id: BackupTest.php 2239 2010-12-10 10:29:49Z yegor256@gmail.com $
 */

require_once 'AbstractTestCase.php';

class FaZend_BackupTest extends AbstractTestCase
{

    public function testItIsASingleton()
    {
        $backup = FaZend_Backup::getInstance();
        $this->assertTrue($backup === FaZend_Backup::getInstance());
    }

    public function testBackupWorks()
    {
        $backup = FaZend_Backup::getInstance();
        $backup->setOptions(
            array(
                'execute' => true,
            )
        );
        $backup->execute('php://stdout');
    }

}
